<script>
	$(function() {
		$( "button, input:submit, a", ".demo" ).button();
		$( "button, input:button, a", ".demo" ).button();
		$( "a", ".demo" ).click(function() { return true; });
	});
</script>
<script src="http://maps.google.com/maps/api/js?v=3.1&sensor=false" type="text/javascript"></script>
<h2>Escribe el destino a recomendar:</h2>
<% form_tag  ({:action => "find_photos", :method => "post"},{:name=>"flickr"}) do %>
	<input type= "hidden" name="trip_id" value="<%= @trip.id %>">
	<input type= "hidden" name="tri_country" value="<%= @trip.tri_country %>" id="tri_country">
	<input type= "hidden" name="tri_city" value="<%= @trip.tri_city %>" id="tri_city">
	<input type= "hidden" name="latitude" id="latitude">
	<input type= "hidden" name="longitude" id="longitude">
	<h3>Pais: <%= @trip.tri_country %> - Ciudad: <%= @trip.tri_city %></h3>
	<div class="demo">
		<input name="iti_location" id="iti_location">
		<input type="button" value="Buscar Fotos" onclick="codeItineraryAddress()">
		<%= link_to "Regresar", :controller => "trips", :action => "show", :id => @trip.id %>
	</div>
<% end -%>